﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameServer.Networking.Packets
{
    class PACKET_SCORE_BOARD_AI : Packet
    {
        public PACKET_SCORE_BOARD_AI(Virtual_Objects.User.virtualUser User)
        {
            Virtual_Objects.Room.virtualRoom Room = User.Room;
            newPacket(30032);
            addBlock(1);
            addBlock(0);
            addBlock(0);
            addBlock(0);
            addBlock(0);
            addBlock(Room.PlayerCount);

            foreach (Virtual_Objects.User.virtualUser Player in Room.Players)
            {
                addBlock(Player.RoomSlot);
                addBlock(Player.rKills);
                addBlock(Player.rDeaths);
                addBlock(0);
                addBlock(Player.rPoints);
                addBlock(0);
                addBlock(0);
            }
        }
    }
}
